package com.maiji.cloud.entities.login;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Description: 文章评论
 * @author zhanglr
 * @date 2019年12月20日上午11:38:17
 */
@NoArgsConstructor
@Data
@Accessors(chain=true)
@Table(name = "article_comment")
@TableName("article_comment")
public class ArticleCommentEntity {

	@TableId
	@Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
	private String uuId; // 评论ID

	@Column(name = "belong_id", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String belongId; // 所属ID
	
	@Column(name = "article_id", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String articleId; //文章ID

	@Column(name = "type", type = MySqlTypeConstant.INT, length = 2)
	private Integer type; // 0:评论 2:评论的评论 3:回复

	@Column(name = "source_user_id", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String sourceUserId;

	@Column(name = "target_user_id", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String targetUserId;
	
	@Column(name = "content", type = MySqlTypeConstant.VARCHAR, length = 255)
	private String content;
	
	@Column(name = "in_time", type = MySqlTypeConstant.DATETIME)
	private Date inTime; //插入时间
	
	@Column(name = "is_del", type = MySqlTypeConstant.INT, length = 2,defaultValue = "0")
	private Integer isDel; //是否删除
	
	@Column(name = "operation_name",  type = MySqlTypeConstant.VARCHAR, length = 50)
	private String operationName;//操作者名称

	@Column(name = "operation_id",  type = MySqlTypeConstant.VARCHAR, length = 50)
	private String operationId;//操作者ID

}
